part of '../repository.dart';

class _PaymentRequestConfirmationInfoDtoFactory {
  const _PaymentRequestConfirmationInfoDtoFactory._internal();

  static const _instance = _PaymentRequestConfirmationInfoDtoFactory._internal();

  factory _PaymentRequestConfirmationInfoDtoFactory() {
    return _instance;
  }

  _PaymentRequestConfirmationInfoDto fromEntity(
      YookassaApiPaymentRequestConfirmationInfo confirmationInfo) {
    if (confirmationInfo is YookassaApiPaymentRequestRedirectConfirmationInfo) {
      return _PaymentRequestRedirectConfirmationInfoDto.fromEntity(confirmationInfo);
    }

    throw UnimplementedError();
  }
}
